package homework;

public class CheckingAccount extends BankAccount{
    public CheckingAccount(double initialBalance) {
        super(initialBalance);
    }

    @Override
    public void deposit(double amount) { // 存款
        super.deposit(amount - 1);
        //1 块钱转入银行账号
    }

    @Override
    public void withdraw(double amount) { // 取款
        super.withdraw(amount + 1);
        //1 块钱转入银行账号
    }
}
